﻿@model IEnumerable<KRM.Core.tblLogsExceptionMail>

@{
    ViewBag.Title = "Index";
    Layout = "~/Views/Shared/_Layout.cshtml";
}
<div class="container-fluid">
    <div class="box">
        <div class="box-title">
            <h3><i class="icon-tasks"></i>Resend Email</h3>
        </div>
        <form action="/ResendEmailException/index" style="margin:10px 0">
        <div class="row-fluid">
            <div class="span4">    
                <div class="row-fluid">
                    <div class="span4">Mail subject:</div>
                    <div class="span8"><input type="text" class="input-block-level" name="mailSubject" value="@Request["mailSubject"]"/></div>
                </div>
            </div>
       
            <div class="span3">
                <div class="row-fluid">
                    <div class="span1"></div>
                    <div class="span3">   From:</div>
                    <div class="span8">
                        <div id="datetimepicker2" class="input-append input-block-level">
                            <input data-format="MM/dd/yyyy" type="text" name="dateFrom" placeholder="From" value="@(Request["dateFrom"]??DateTime.Now.AddDays(-30).ToString("MM/dd/yyyy"))"style="width: 76%">
                            <span class="add-on">
                                <i data-time-icon="icon-time" data-date-icon="icon-calendar" class="icon-calendar"></i>
                            </span>
                        </div>
                    </div>
                </div> </div>
            <div class="span3">
                <div class="row-fluid">
                    <div class="span1"></div>
                    <div class="span3">   To:</div>
                    <div class="span8">
                        <div id="datetimepicker3" class="input-append input-block-level">
                            <input data-format="MM/dd/yyyy" type="text" name="dateTo" placeholder="From" value="@(Request["dateTo"]??DateTime.Now.ToString("MM/dd/yyyy"))" style="width: 76%">
                            <span class="add-on">
                                <i data-time-icon="icon-time" data-date-icon="icon-calendar" class="icon-calendar"></i>
                            </span>
                        </div>
                    </div>
                </div>

            </div>
            <div class="span2">
                <button type="submit" class="btn btn-primary">Search</button>
            </div>
        </div>
        </form>
        <div class="row-fluid">
            @Html.Partial("Partial/_MessageResult")
            <div class="large-scroll fixhead">
                <table class="table table-hover table-bordered table-fix ">
                    <thead>
                        <tr>
                            <th></th>
                            <th>MailSubject</th>
                            <th>LogTimeStamp</th>
                            <th>MailTo</th>
                        </tr>
                    </thead>
                    <tbody>
                        @foreach (var item in Model)
                        {
                            <tr>
                                <td>
                                    <a href="/resendemailexception/Preview/@item.ID" role="button" data-toggle="modal" class="btn"><i class="icon-search"></i> Preview</a>
                                    <a href="/resendemailexception/ResendEmail/@item.ID" role="button" data-toggle="modal" class="btn btn-primary"><i class="icon-envelope"></i> Resend</a></td>
                                <td style="text-align: left">@item.MailSubject</td>
                                <td>@item.LogTimeStamp</td>
                                <td >@item.MailTo</td>
                            </tr>
                        }
                    </tbody>
                </table>
            </div>

        </div>

    </div>
</div>
